package com.time.client.domain.converter;

import com.time.client.domain.entity.PostBO;
import com.time.client.infra.basic.entity.Post;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 文章BO转换器类
 *
 * @author: HuangQi
 * @date: Created in 10:00 2025/11/4
 * @description: 文章BO转换器类
 */
@Mapper
public interface PostBOConverter {

    PostBOConverter INSTANCE = Mappers.getMapper(PostBOConverter.class);

    Post convertBOToEntity(PostBO postBO);

    PostBO convertEntityToBO(Post post);

    List<PostBO> convertEntityListToBO(List<Post> postList);
}
